import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [{
        path: "/",
        redirect: "/recommend"
    }, {
        path: "/recommend",
        name: "recommend",
        component: () =>
            import ("views/recommend/recommend")
    }, {
        path: "/singer",
        name: "singer",
        component: () =>
            import ("views/singer/singer")
    }, {
        path: "/rank",
        name: "rank",
        component: () =>
            import ("views/rank/rank")
    }, {
        path: "/search",
        name: "search",
        component: () =>
            import ("views/search/search")
    }]
})